package com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.LiveEntity;
import com.dto.PageResult;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 直播表 服务类
 * </p>
 *
 * @author sly
 * @since 2023-12-23
 */
public interface LiveService extends IService<LiveEntity> {

    @Transactional(rollbackFor = Exception.class)
    PageResult<LiveEntity> pageListLive(LiveEntity live);

    LiveEntity getLiveDetail(Long liveId);

    @Transactional
    void addLive(LiveEntity live);

    @Transactional
    void updateLive(LiveEntity live);

    @Transactional
    void deleteLive(Long liveId);
}
